﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GlucometerPrototype
{
    class Device
    {
        private bool bOn = false;
        private bool bError = false;
        private int iBatteryLevel = 4; //0,1,2,3,4
        private bool bACplugin = false;
        private bool bUSB = false;
        private bool bTestStrip = false;
        private string strUnit = "L";
        private bool bFeed = false;
        private bool bBrowseHistory = false;
        public enum Setting{ nothing, unit, month, day, year, hour, minute };
        private Setting setArea = Setting.nothing;
        DateTime time = DateTime.Now;      //the time in the device


        public bool BrowseHistory
        {
            get { return this.bBrowseHistory; }
            set { bBrowseHistory = value; }
        }

        public Setting SetArea
        {
            get { return this.setArea; }
            set { setArea = value; }
        }

        public bool Feed
        {
            get { return this.bFeed; }
            set { bFeed = value; }
        }

        public string Unit
        {
            get { return this.strUnit; }
            set { strUnit = value; }
        }

        public bool On
        {
            get { return this.bOn; }
            set { bOn = value; }
        }

        public bool Error
        {
            get { return this.bError; }
            set { bError = value; }
        }

        public int BatteryLevel
        {
            get { return this.iBatteryLevel; }
            set { iBatteryLevel = value; }
        }

        public bool ACpluginStatus
        {
            get { return this.bACplugin; }
            set { bACplugin = value; }
        }

        public bool USBStatus
        {
            get { return this.bUSB; }
            set { bUSB = value; }
        }

        public bool TestStripStatus
        {
            get { return this.bTestStrip; }
            set { bTestStrip = value; }
        }

        private DateTime GetCurrentDateTime()
        {
            return DateTime.Now;
        }

        public DateTime Time
        {
            get { return this.time; }
            set { time = value; }
        }
    }
}
